|
spitoi2c 2.2.0
|
This file contains API for SPI to I2C Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"Go to the source code of this file.
Data Structures | |
| struct | spitoi2c_t |
| SPI to I2C Click context object. More... | |
| struct | spitoi2c_cfg_t |
| SPI to I2C Click configuration object. More... | |
Enumerations | |
| enum | spitoi2c_return_value_t { SPITOI2C_OK = 0 , SPITOI2C_ERROR = -1 } |
| SPI to I2C Click return value data. More... | |
Functions | |
| void | spitoi2c_cfg_setup (spitoi2c_cfg_t *cfg) |
| SPI to I2C configuration object setup function. | |
| err_t | spitoi2c_init (spitoi2c_t *ctx, spitoi2c_cfg_t *cfg) |
| SPI to I2C initialization function. | |
| err_t | spitoi2c_default_cfg (spitoi2c_t *ctx) |
| SPI to I2C default configuration function. | |
| err_t | spitoi2c_gpio_write (spitoi2c_t *ctx, uint8_t gpio_data) |
| SPI to I2C gpio write function. | |
| err_t | spitoi2c_gpio_read (spitoi2c_t *ctx, uint8_t *gpio_data) |
| SPI to I2C gpio read function. | |
| err_t | spitoi2c_gpio_config (spitoi2c_t *ctx, uint8_t direction, uint8_t pin_mask) |
| SPI to I2C gpio gpio config function. | |
| err_t | spitoi2c_read_i2c_status (spitoi2c_t *ctx, uint8_t *i2c_stat) |
| SPI to I2C read i2c status function. | |
| err_t | spitoi2c_i2c_write (spitoi2c_t *ctx, uint8_t slave_addr, uint8_t *data_in, uint8_t len) |
| SPI to I2C i2c write function. | |
| err_t | spitoi2c_i2c_read (spitoi2c_t *ctx, uint8_t slave_addr, uint8_t *data_out, uint8_t len) |
| SPI to I2C i2c read function. | |
| err_t | spitoi2c_i2c_read_after_write (spitoi2c_t *ctx, uint8_t slave_addr, uint8_t *data_in, uint8_t in_len, uint8_t *data_out, uint8_t out_len) |
| SPI to I2C i2c read after write function. | |
| err_t | spitoi2c_i2c_write_after_write (spitoi2c_t *ctx, uint8_t slave_addr, uint8_t *data_in1, uint8_t in1_len, uint8_t *data_in2, uint8_t in2_len) |
| SPI to I2C i2c write after write function. | |
| void | spitoi2c_read_buffer (spitoi2c_t *ctx, uint8_t *data_out, uint8_t len) |
| SPI to I2C read buffer function. | |
| err_t | spitoi2c_set_spi_config (spitoi2c_t *ctx, uint8_t spi_cfg) |
| SPI to I2C set spi config function. | |
| err_t | spitoi2c_write_register (spitoi2c_t *ctx, uint8_t reg, uint8_t data_in) |
| SPI to I2C write register function. | |
| err_t | spitoi2c_read_register (spitoi2c_t *ctx, uint8_t reg, uint8_t *data_out) |
| SPI to I2C read register function. | |
| void | spitoi2c_deep_power_down (spitoi2c_t *ctx) |
| SPI to I2C deep power down function. | |
| void | spitoi2c_wake_up (spitoi2c_t *ctx) |
| SPI to I2C wake up function. | |
| err_t | spitoi2c_read_version (spitoi2c_t *ctx, uint8_t *version) |
| SPI to I2C read version function. | |
| void | spitoi2c_enable_device (spitoi2c_t *ctx) |
| SPI to I2C enable device function. | |
| void | spitoi2c_disable_device (spitoi2c_t *ctx) |
| SPI to I2C disable device function. | |
| uint8_t | spitoi2c_get_int_pin (spitoi2c_t *ctx) |
| SPI to I2C get int pin function. | |
This file contains API for SPI to I2C Click Driver.